package my.test.bean.ex7;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	@Test
	public void testDate() {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("my/test/bean/ex7/beans.xml");
		UserManager userManager = (UserManager)ctx.getBean("userManager");
		System.out.println(userManager);
	}
	@Test
	public void testDate2() {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("my/test/bean/ex7/beans2.xml");
		UserManager userManager = (UserManager)ctx.getBean("userManager");
		System.out.println(userManager);
	}
}
